import 'package:json_annotation/json_annotation.dart';

part 'cart_add.g.dart';

@JsonSerializable()
class CartAdd {
  final int cartId;
  final int quantity;

  CartAdd(this.cartId, this.quantity);

  factory CartAdd.fromJson(Map<String, dynamic> json) => _$CartAddFromJson(json);

  Map<String, dynamic> toJson() => _$CartAddToJson(this);
}
